package com.witmore.neutron.ai.web.wechat.ak;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * AKShare数据服务
 * 统一提供所有AKShare相关的数据接口
 *
 * @author 豆子高
 * @date 2025-01-20
 */
@Slf4j
@Service
public class AkshareService {

    @Autowired
    private AkShareHttpClient akShareHttpClient;

    // ==================== 基础行情接口 ====================

    /**
     * 个股信息查询-东财
     */
    public String stockIndividualInfoEm(String symbol) throws IOException {
        log.info("获取个股信息: {}", symbol);
        return akShareHttpClient.executeGetRequestRaw(AkShareApiConstants.STOCK_INDIVIDUAL_INFO_EM, symbol);
    }
}
